/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.ipo.mm.web.formbeans;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collection;
import java.util.List;
import java.util.Locale;
import java.util.logging.Level;
import java.util.logging.Logger;
//import javax.enterprise.context.spi.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.servlet.http.HttpServletRequest;

import org.apache.struts.Globals;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.upload.FormFile;
import org.apache.struts.util.MessageResources;
import org.ipo.mm.ejb.entities.Actions;
import org.ipo.mm.ejb.entities.Document;
import org.ipo.mm.ejb.entities.Meeting;
import org.ipo.mm.ejb.entities.Representative;
import org.ipo.mm.ejb.facade.representative.RepresentativeFacadeLocal;
import org.ipo.mm.web.util.ConstantManager;

/**
 *
 * @author makcro
 */
public class MeetingBean extends org.apache.struts.validator.ValidatorForm {

    private String eventName;
    private String date;
    private String startTime;
    private String endTime;
    private String conclusion;
    private String venue;
    private String note;
    //id of organizer
    private String organizer;
    private int[] representatives;
    private Representative[] reprSearchResults;
    private int[] selectedRepresentatives;
    private int[] selectedReprForRemove;
    private boolean draft;
    private int[] selectedDocuments;
    private String role;
    private int[] selectedReprParticipantsIds;
    private int[] selectedReprOrganizersIds;
    private Representative[] selectedReprParticipants;
    private Representative[] selectedReprOrganizers;
    private String actionId;
    private String actionName;
    private String actionDesc;
    private String actionDueDate;
    private String actionStatus;
    private ArrayList<Actions> actions;
    private List<Document> documentCollection;

    public String getActionStatus() {
        return actionStatus;
    }

    public void setActionStatus(String actionStatus) {
        this.actionStatus = actionStatus;
    }

    public String getActionDesc() {
        return actionDesc;
    }

    public void setActionDesc(String actionDesc) {
        this.actionDesc = actionDesc;
    }

    public String getActionDueDate() {
        return actionDueDate;
    }

    public void setActionDueDate(String actionDueDate) {
        this.actionDueDate = actionDueDate;
    }

    public String getActionName() {
        return actionName;
    }

    public void setActionName(String actionName) {
        this.actionName = actionName;
    }
    private FormFile doc1file;
    private String doc1Name;
    private String doc1Note;
    private FormFile doc2file;
    private String doc2Name;
    private String doc2Note;
    private FormFile doc3file;
    private String doc3Name;
    private String doc3Note;
    private FormFile doc4file;
    private String doc4Name;
    private String doc4Note;
    private FormFile doc5file;
    private String doc5Name;
    private String doc5Note;
    private FormFile doc6file;
    private String doc6Name;
    private String doc6Note;
    private FormFile doc7file;
    private String doc7Name;
    private String doc7Note;
    private FormFile doc8file;
    private String doc8Name;
    private String doc8Note;
    private FormFile doc9file;
    private String doc9Name;
    private String doc9Note;
    private FormFile doc10file;
    private String doc10Name;
    private String doc10Note;
    private FormFile doc11file;
    private String doc11Name;
    private String doc11Note;
    private FormFile doc12file;
    private String doc12Name;
    private String doc12Note;
    private FormFile doc13file;
    private String doc13Name;
    private String doc13Note;
    private FormFile doc14file;
    private String doc14Name;
    private String doc14Note;
    private FormFile doc15file;
    private String doc15Name;
    private String doc15Note;
    private FormFile doc16file;
    private String doc16Name;
    private String doc16Note;
    private FormFile doc17file;
    private String doc17Name;
    private String doc17Note;
    private FormFile doc18file;
    private String doc18Name;
    private String doc18Note;
    private FormFile doc19file;
    private String doc19Name;
    private String doc19Note;
    private FormFile doc20file;
    private String doc20Name;
    private String doc20Note;
    private FormFile doc21file;
    private String doc21Name;
    private String doc21Note;
    private FormFile doc22file;
    private String doc22Name;
    private String doc22Note;
    private FormFile doc23file;
    private String doc23Name;
    private String doc23Note;
    private FormFile doc24file;
    private String doc24Name;
    private String doc24Note;
    private FormFile doc25file;
    private String doc25Name;
    private String doc25Note;
    private FormFile doc26file;
    private String doc26Name;
    private String doc26Note;
    private FormFile doc27file;
    private String doc27Name;
    private String doc27Note;
    private FormFile doc28file;
    private String doc28Name;
    private String doc28Note;
    private FormFile doc29file;
    private String doc29Name;
    private String doc29Note;
    private FormFile doc30file;
    private String doc30Name;
    private String doc30Note;
    private FormFile file3;
    private FormFile file4;
    private FormFile file5;
    private String operation;
    private String searchQuery;

    @Override
    public void reset(ActionMapping mapping, HttpServletRequest request) {

        String action = request.getParameter("method");
        Boolean resetForm = (Boolean) request.getSession().getAttribute(ConstantManager.SESSION_MEETING_RESET_FORM);

        Representative repLastCreated = (Representative) request.getAttribute(ConstantManager.REQUEST_REPRESENTATIVE_LAST_CREATED);
        if (repLastCreated != null) {
//            Meeting meetingInProcess = (Meeting) request.getSession().getAttribute(ConstantManager.SESSION_MEETING_PROCESS_AN);
//            if(meetingInProcess != null){
//
//            }
            this.reprSearchResults = new Representative[]{repLastCreated};
        }


        if (resetForm) {
            boolean resetFormFromUrl = Boolean.valueOf(request.getParameter("rf"));

            if ("showUpdateMeetingForm".equals(action) || "viewMeetingForm".equals(action)) {

                Meeting m = (Meeting) request.getSession().getAttribute(ConstantManager.SESSION_MEETING_PROCESS_AN);
                this.setDocumentCollection(m.getDocumentCollection());

                this.setConclusion(m.getConclusion() == null ? "" : m.getConclusion());
                this.date = new SimpleDateFormat("dd/MM/yyyy").format(m.getDate() != null ? m.getDate() : Calendar.getInstance().getTime());
                this.setEventName(m.getEventName() == null ? "" : m.getEventName());
                this.setNote(m.getNote() == null ? "" : m.getNote());
                this.setVenue(m.getVenue() == null ? "" : m.getVenue());
                this.organizer = m.getOrganizer() == null ? "" : String.valueOf(m.getOrganizer().getId());

                if (resetFormFromUrl) {
                    this.draft = m.getDraft();
                }
                //this.reprSearchResults = new Representative[0];
                if("showUpdateMeetingForm".equals(action)){
                    List<Representative> reprs = lookupRepresentativeFacade().findAll();
                    this.setReprSearchResults(reprs.toArray(new Representative[reprs.size()]));
                }
                
                this.searchQuery = null;
                this.setStartTime(m.getStartTime() == null ? "" : m.getStartTime());
                this.setEndTime(m.getEndTime() == null ? "" : m.getEndTime());
                this.setActions(m.getMeetingActions());

            } else if ("showCreateMeetingForm".equals(action)) {
                conclusion = null;
                this.eventName = null;
                this.note = null;
                this.organizer = null;
                this.venue = null;
                this.setActions(null);
                this.draft = false;
                this.date = null;
                //this.reprSearchResults = new Representative[0];
                List<Representative> reprs = lookupRepresentativeFacade().findAll();
                this.setReprSearchResults(reprs.toArray(new Representative[reprs.size()]));
                this.organizer = null;
                this.searchQuery = null;
                this.selectedRepresentatives = new int[0];
                this.startTime = null;
                this.endTime = null;
            }
        }


    }

    /**
     * This is the action called from the Struts framework.
     * @param mapping The ActionMapping used to select this instance.
     * @param request The HTTP Request we are processing.
     * @return
     */
    @Override
    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
        ActionErrors errors = null;
        MessageResources mResources = (MessageResources) request.getAttribute(Globals.MESSAGES_KEY);
        Locale locale = (Locale) request.getSession().getAttribute(Globals.LOCALE_KEY);

        String create = mResources.getMessage(locale, "gen_create");
        String update = mResources.getMessage(locale, "gen_update");


        if (create.equals(operation) || update.equals(operation)) {
            errors = super.validate(mapping, request);
        }


        return errors;
    }

    private RepresentativeFacadeLocal lookupRepresentativeFacade() {
        try {
            InitialContext c = new InitialContext();
            return (RepresentativeFacadeLocal) c.lookup("java:comp/env/RepresentativeFacade");
        } catch (NamingException ne) {
            Logger.getLogger(getClass().getName()).log(Level.SEVERE, "exception caught", ne);
            throw new RuntimeException(ne);
        }
    }

    public String getDoc1Name() {
        return doc1Name;
    }

    public void setDoc1Name(String doc1Name) {
        this.doc1Name = doc1Name;
    }

    public String getDoc1Note() {
        return doc1Note;
    }

    public void setDoc1Note(String doc1Note) {
        this.doc1Note = doc1Note;
    }

    public FormFile getDoc1file() {
        return doc1file;
    }

    public void setDoc1file(FormFile doc1file) {
        this.doc1file = doc1file;
    }

    public int[] getSelectedReprForRemove() {
        return selectedReprForRemove;
    }

    public void setSelectedReprForRemove(int[] selectedReprForRemove) {
        this.selectedReprForRemove = selectedReprForRemove;
    }

    public int[] getSelectedDocuments() {
        return selectedDocuments;
    }

    public void setSelectedDocuments(int[] selectedDocuments) {
        this.selectedDocuments = selectedDocuments;
    }

    public MeetingBean() {
        super();
        this.reprSearchResults = new Representative[0];
        this.representatives = new int[0];
        this.selectedRepresentatives = new int[0];
        this.selectedReprParticipantsIds = new int[0];
        this.selectedReprOrganizersIds = new int[0];
        this.selectedReprParticipants = new Representative[0];
        this.selectedReprOrganizers = new Representative[0];


        // TODO Auto-generated constructor stub
    }

    /**
     * @return the eventName
     */
    public String getEventName() {
        return eventName;
    }

    /**
     * @return the date
     */
    public String getDate() {
        return date;
    }

    /**
     * @param date the date to set
     */
    public void setDate(String date) {
        this.date = date;
    }

    /**
     * @return the conclusion
     */
    public String getConclusion() {
        return conclusion;
    }

    /**
     * @return the venue
     */
    public String getVenue() {
        return venue;
    }

    /**
     * @return the note
     */
    public String getNote() {
        return note;
    }

    public String getOrganizer() {
        return organizer;
    }

    public void setOrganizer(String organizer) {
        this.organizer = organizer;
    }

    public int[] getRepresentatives() {
        return representatives;
    }

    /**
     * @param representatives the representatives to set
     */
    public void setRepresentatives(int[] representatives) {
        this.representatives = representatives;
    }

    /**
     * @return the reprSearchResults
     */
    public Representative[] getReprSearchResults() {
        return reprSearchResults;
    }

    /**
     * @param reprSearchResults the reprSearchResults to set
     */
    public void setReprSearchResults(Representative[] reprSearchResults) {
        this.reprSearchResults = reprSearchResults;
    }

    /**
     * @return the selectedRepresentatives
     */
    public int[] getSelectedRepresentatives() {
        return selectedRepresentatives;
    }

    /**
     * @param selectedRepresentatives the selectedRepresentatives to set
     */
    public void setSelectedRepresentatives(int[] selectedRepresentatives) {
        this.selectedRepresentatives = selectedRepresentatives;
    }

    /**
     * @return the role
     */
    public String getRole() {
        return role;
    }

    /**
     * @param role the role to set
     */
    public void setRole(String role) {
        this.role = role;
    }

    /**
     * @return the file1
     */
    /**
     * @return the file3
     */
    public FormFile getFile3() {
        return file3;
    }

    /**
     * @param file3 the file3 to set
     */
    public void setFile3(FormFile file3) {
        this.file3 = file3;
    }

    /**
     * @return the file4
     */
    public FormFile getFile4() {
        return file4;
    }

    /**
     * @param file4 the file4 to set
     */
    public void setFile4(FormFile file4) {
        this.file4 = file4;
    }

    /**
     * @return the file5
     */
    public FormFile getFile5() {
        return file5;
    }

    /**
     * @param file5 the file5 to set
     */
    public void setFile5(FormFile file5) {
        this.file5 = file5;
    }

    /**
     * @return the operation
     */
    public String getOperation() {
        return operation;
    }

    /**
     * @param operation the operation to set
     */
    public void setOperation(String operation) {
        this.operation = operation;
    }

    /**
     * @return the searchQuery
     */
    public String getSearchQuery() {
        return searchQuery;
    }

    /**
     * @return the doc2file
     */
    public FormFile getDoc2file() {
        return doc2file;
    }

    /**
     * @param doc2file the doc2file to set
     */
    public void setDoc2file(FormFile doc2file) {
        this.doc2file = doc2file;
    }

    /**
     * @return the doc2Name
     */
    public String getDoc2Name() {
        return doc2Name;
    }

    /**
     * @param doc2Name the doc2Name to set
     */
    public void setDoc2Name(String doc2Name) {
        this.doc2Name = doc2Name;
    }

    /**
     * @return the doc2Note
     */
    public String getDoc2Note() {
        return doc2Note;
    }

    /**
     * @param doc2Note the doc2Note to set
     */
    public void setDoc2Note(String doc2Note) {
        this.doc2Note = doc2Note;
    }

    /**
     * @return the doc3file
     */
    public FormFile getDoc3file() {
        return doc3file;
    }

    /**
     * @param doc3file the doc3file to set
     */
    public void setDoc3file(FormFile doc3file) {
        this.doc3file = doc3file;
    }

    /**
     * @return the doc3Name
     */
    public String getDoc3Name() {
        return doc3Name;
    }

    /**
     * @param doc3Name the doc3Name to set
     */
    public void setDoc3Name(String doc3Name) {
        this.doc3Name = doc3Name;
    }

    /**
     * @return the doc3Note
     */
    public String getDoc3Note() {
        return doc3Note;
    }

    /**
     * @param doc3Note the doc3Note to set
     */
    public void setDoc3Note(String doc3Note) {
        this.doc3Note = doc3Note;
    }

    /**
     * @return the doc4file
     */
    public FormFile getDoc4file() {
        return doc4file;
    }

    /**
     * @param doc4file the doc4file to set
     */
    public void setDoc4file(FormFile doc4file) {
        this.doc4file = doc4file;
    }

    /**
     * @return the doc4Name
     */
    public String getDoc4Name() {
        return doc4Name;
    }

    /**
     * @param doc4Name the doc4Name to set
     */
    public void setDoc4Name(String doc4Name) {
        this.doc4Name = doc4Name;
    }

    /**
     * @return the doc4Note
     */
    public String getDoc4Note() {
        return doc4Note;
    }

    /**
     * @param doc4Note the doc4Note to set
     */
    public void setDoc4Note(String doc4Note) {
        this.doc4Note = doc4Note;
    }

    /**
     * @return the doc5file
     */
    public FormFile getDoc5file() {
        return doc5file;
    }

    /**
     * @param doc5file the doc5file to set
     */
    public void setDoc5file(FormFile doc5file) {
        this.doc5file = doc5file;
    }

    /**
     * @return the doc5Name
     */
    public String getDoc5Name() {
        return doc5Name;
    }

    /**
     * @param doc5Name the doc5Name to set
     */
    public void setDoc5Name(String doc5Name) {
        this.doc5Name = doc5Name;
    }

    /**
     * @return the doc5Note
     */
    public String getDoc5Note() {
        return doc5Note;
    }

    /**
     * @param doc5Note the doc5Note to set
     */
    public void setDoc5Note(String doc5Note) {
        this.doc5Note = doc5Note;
    }

    /**
     * @return the doc6file
     */
    public FormFile getDoc6file() {
        return doc6file;
    }

    /**
     * @param doc6file the doc6file to set
     */
    public void setDoc6file(FormFile doc6file) {
        this.doc6file = doc6file;
    }

    /**
     * @return the doc6Name
     */
    public String getDoc6Name() {
        return doc6Name;
    }

    /**
     * @param doc6Name the doc6Name to set
     */
    public void setDoc6Name(String doc6Name) {
        this.doc6Name = doc6Name;
    }

    /**
     * @return the doc6Note
     */
    public String getDoc6Note() {
        return doc6Note;
    }

    /**
     * @param doc6Note the doc6Note to set
     */
    public void setDoc6Note(String doc6Note) {
        this.doc6Note = doc6Note;
    }

    /**
     * @return the doc7file
     */
    public FormFile getDoc7file() {
        return doc7file;
    }

    /**
     * @param doc7file the doc7file to set
     */
    public void setDoc7file(FormFile doc7file) {
        this.doc7file = doc7file;
    }

    /**
     * @return the doc7Name
     */
    public String getDoc7Name() {
        return doc7Name;
    }

    /**
     * @param doc7Name the doc7Name to set
     */
    public void setDoc7Name(String doc7Name) {
        this.doc7Name = doc7Name;
    }

    /**
     * @return the doc7Note
     */
    public String getDoc7Note() {
        return doc7Note;
    }

    /**
     * @param doc7Note the doc7Note to set
     */
    public void setDoc7Note(String doc7Note) {
        this.doc7Note = doc7Note;
    }

    /**
     * @return the doc8file
     */
    public FormFile getDoc8file() {
        return doc8file;
    }

    /**
     * @param doc8file the doc8file to set
     */
    public void setDoc8file(FormFile doc8file) {
        this.doc8file = doc8file;
    }

    /**
     * @return the doc8Name
     */
    public String getDoc8Name() {
        return doc8Name;
    }

    /**
     * @param doc8Name the doc8Name to set
     */
    public void setDoc8Name(String doc8Name) {
        this.doc8Name = doc8Name;
    }

    /**
     * @return the doc8Note
     */
    public String getDoc8Note() {
        return doc8Note;
    }

    /**
     * @param doc8Note the doc8Note to set
     */
    public void setDoc8Note(String doc8Note) {
        this.doc8Note = doc8Note;
    }

    /**
     * @return the doc9file
     */
    public FormFile getDoc9file() {
        return doc9file;
    }

    /**
     * @param doc9file the doc9file to set
     */
    public void setDoc9file(FormFile doc9file) {
        this.doc9file = doc9file;
    }

    /**
     * @return the doc9Name
     */
    public String getDoc9Name() {
        return doc9Name;
    }

    /**
     * @param doc9Name the doc9Name to set
     */
    public void setDoc9Name(String doc9Name) {
        this.doc9Name = doc9Name;
    }

    /**
     * @return the doc9Note
     */
    public String getDoc9Note() {
        return doc9Note;
    }

    /**
     * @param doc9Note the doc9Note to set
     */
    public void setDoc9Note(String doc9Note) {
        this.doc9Note = doc9Note;
    }

    /**
     * @return the doc10file
     */
    public FormFile getDoc10file() {
        return doc10file;
    }

    /**
     * @param doc10file the doc10file to set
     */
    public void setDoc10file(FormFile doc10file) {
        this.doc10file = doc10file;
    }

    /**
     * @return the doc10Name
     */
    public String getDoc10Name() {
        return doc10Name;
    }

    /**
     * @param doc10Name the doc10Name to set
     */
    public void setDoc10Name(String doc10Name) {
        this.doc10Name = doc10Name;
    }

    /**
     * @return the doc10Note
     */
    public String getDoc10Note() {
        return doc10Note;
    }

    /**
     * @param doc10Note the doc10Note to set
     */
    public void setDoc10Note(String doc10Note) {
        this.doc10Note = doc10Note;
    }

    /**
     * @return the doc11file
     */
    public FormFile getDoc11file() {
        return doc11file;
    }

    /**
     * @param doc11file the doc11file to set
     */
    public void setDoc11file(FormFile doc11file) {
        this.doc11file = doc11file;
    }

    /**
     * @return the doc11Name
     */
    public String getDoc11Name() {
        return doc11Name;
    }

    /**
     * @param doc11Name the doc11Name to set
     */
    public void setDoc11Name(String doc11Name) {
        this.doc11Name = doc11Name;
    }

    /**
     * @return the doc11Note
     */
    public String getDoc11Note() {
        return doc11Note;
    }

    /**
     * @param doc11Note the doc11Note to set
     */
    public void setDoc11Note(String doc11Note) {
        this.doc11Note = doc11Note;
    }

    /**
     * @return the doc12file
     */
    public FormFile getDoc12file() {
        return doc12file;
    }

    /**
     * @param doc12file the doc12file to set
     */
    public void setDoc12file(FormFile doc12file) {
        this.doc12file = doc12file;
    }

    /**
     * @return the doc12Name
     */
    public String getDoc12Name() {
        return doc12Name;
    }

    /**
     * @param doc12Name the doc12Name to set
     */
    public void setDoc12Name(String doc12Name) {
        this.doc12Name = doc12Name;
    }

    /**
     * @return the doc12Note
     */
    public String getDoc12Note() {
        return doc12Note;
    }

    /**
     * @param doc12Note the doc12Note to set
     */
    public void setDoc12Note(String doc12Note) {
        this.doc12Note = doc12Note;
    }

    /**
     * @return the doc13file
     */
    public FormFile getDoc13file() {
        return doc13file;
    }

    /**
     * @param doc13file the doc13file to set
     */
    public void setDoc13file(FormFile doc13file) {
        this.doc13file = doc13file;
    }

    /**
     * @return the doc13Name
     */
    public String getDoc13Name() {
        return doc13Name;
    }

    /**
     * @param doc13Name the doc13Name to set
     */
    public void setDoc13Name(String doc13Name) {
        this.doc13Name = doc13Name;
    }

    /**
     * @return the doc13Note
     */
    public String getDoc13Note() {
        return doc13Note;
    }

    /**
     * @param doc13Note the doc13Note to set
     */
    public void setDoc13Note(String doc13Note) {
        this.doc13Note = doc13Note;
    }

    /**
     * @return the doc14file
     */
    public FormFile getDoc14file() {
        return doc14file;
    }

    /**
     * @param doc14file the doc14file to set
     */
    public void setDoc14file(FormFile doc14file) {
        this.doc14file = doc14file;
    }

    /**
     * @return the doc14Name
     */
    public String getDoc14Name() {
        return doc14Name;
    }

    /**
     * @param doc14Name the doc14Name to set
     */
    public void setDoc14Name(String doc14Name) {
        this.doc14Name = doc14Name;
    }

    /**
     * @return the doc14Note
     */
    public String getDoc14Note() {
        return doc14Note;
    }

    /**
     * @param doc14Note the doc14Note to set
     */
    public void setDoc14Note(String doc14Note) {
        this.doc14Note = doc14Note;
    }

    /**
     * @return the doc15file
     */
    public FormFile getDoc15file() {
        return doc15file;
    }

    /**
     * @param doc15file the doc15file to set
     */
    public void setDoc15file(FormFile doc15file) {
        this.doc15file = doc15file;
    }

    /**
     * @return the doc15Name
     */
    public String getDoc15Name() {
        return doc15Name;
    }

    /**
     * @param doc15Name the doc15Name to set
     */
    public void setDoc15Name(String doc15Name) {
        this.doc15Name = doc15Name;
    }

    /**
     * @return the doc15Note
     */
    public String getDoc15Note() {
        return doc15Note;
    }

    /**
     * @param doc15Note the doc15Note to set
     */
    public void setDoc15Note(String doc15Note) {
        this.doc15Note = doc15Note;
    }

    /**
     * @return the doc16file
     */
    public FormFile getDoc16file() {
        return doc16file;
    }

    /**
     * @param doc16file the doc16file to set
     */
    public void setDoc16file(FormFile doc16file) {
        this.doc16file = doc16file;
    }

    /**
     * @return the doc16Name
     */
    public String getDoc16Name() {
        return doc16Name;
    }

    /**
     * @param doc16Name the doc16Name to set
     */
    public void setDoc16Name(String doc16Name) {
        this.doc16Name = doc16Name;
    }

    /**
     * @return the doc16Note
     */
    public String getDoc16Note() {
        return doc16Note;
    }

    /**
     * @param doc16Note the doc16Note to set
     */
    public void setDoc16Note(String doc16Note) {
        this.doc16Note = doc16Note;
    }

    /**
     * @return the doc17file
     */
    public FormFile getDoc17file() {
        return doc17file;
    }

    /**
     * @param doc17file the doc17file to set
     */
    public void setDoc17file(FormFile doc17file) {
        this.doc17file = doc17file;
    }

    /**
     * @return the doc17Name
     */
    public String getDoc17Name() {
        return doc17Name;
    }

    /**
     * @param doc17Name the doc17Name to set
     */
    public void setDoc17Name(String doc17Name) {
        this.doc17Name = doc17Name;
    }

    /**
     * @return the doc17Note
     */
    public String getDoc17Note() {
        return doc17Note;
    }

    /**
     * @param doc17Note the doc17Note to set
     */
    public void setDoc17Note(String doc17Note) {
        this.doc17Note = doc17Note;
    }

    /**
     * @return the doc18file
     */
    public FormFile getDoc18file() {
        return doc18file;
    }

    /**
     * @param doc18file the doc18file to set
     */
    public void setDoc18file(FormFile doc18file) {
        this.doc18file = doc18file;
    }

    /**
     * @return the doc18Name
     */
    public String getDoc18Name() {
        return doc18Name;
    }

    /**
     * @param doc18Name the doc18Name to set
     */
    public void setDoc18Name(String doc18Name) {
        this.doc18Name = doc18Name;
    }

    /**
     * @return the doc18Note
     */
    public String getDoc18Note() {
        return doc18Note;
    }

    /**
     * @param doc18Note the doc18Note to set
     */
    public void setDoc18Note(String doc18Note) {
        this.doc18Note = doc18Note;
    }

    /**
     * @return the doc19file
     */
    public FormFile getDoc19file() {
        return doc19file;
    }

    /**
     * @param doc19file the doc19file to set
     */
    public void setDoc19file(FormFile doc19file) {
        this.doc19file = doc19file;
    }

    /**
     * @return the doc19Name
     */
    public String getDoc19Name() {
        return doc19Name;
    }

    /**
     * @param doc19Name the doc19Name to set
     */
    public void setDoc19Name(String doc19Name) {
        this.doc19Name = doc19Name;
    }

    /**
     * @return the doc19Note
     */
    public String getDoc19Note() {
        return doc19Note;
    }

    /**
     * @param doc19Note the doc19Note to set
     */
    public void setDoc19Note(String doc19Note) {
        this.doc19Note = doc19Note;
    }

    /**
     * @return the doc20file
     */
    public FormFile getDoc20file() {
        return doc20file;
    }

    /**
     * @param doc20file the doc20file to set
     */
    public void setDoc20file(FormFile doc20file) {
        this.doc20file = doc20file;
    }

    /**
     * @return the doc20Name
     */
    public String getDoc20Name() {
        return doc20Name;
    }

    /**
     * @param doc20Name the doc20Name to set
     */
    public void setDoc20Name(String doc20Name) {
        this.doc20Name = doc20Name;
    }

    /**
     * @return the doc20Note
     */
    public String getDoc20Note() {
        return doc20Note;
    }

    /**
     * @param doc20Note the doc20Note to set
     */
    public void setDoc20Note(String doc20Note) {
        this.doc20Note = doc20Note;
    }

    /**
     * @return the doc21file
     */
    public FormFile getDoc21file() {
        return doc21file;
    }

    /**
     * @param doc21file the doc21file to set
     */
    public void setDoc21file(FormFile doc21file) {
        this.doc21file = doc21file;
    }

    /**
     * @return the doc21Name
     */
    public String getDoc21Name() {
        return doc21Name;
    }

    /**
     * @param doc21Name the doc21Name to set
     */
    public void setDoc21Name(String doc21Name) {
        this.doc21Name = doc21Name;
    }

    /**
     * @return the doc21Note
     */
    public String getDoc21Note() {
        return doc21Note;
    }

    /**
     * @param doc21Note the doc21Note to set
     */
    public void setDoc21Note(String doc21Note) {
        this.doc21Note = doc21Note;
    }

    /**
     * @return the doc22file
     */
    public FormFile getDoc22file() {
        return doc22file;
    }

    /**
     * @param doc22file the doc22file to set
     */
    public void setDoc22file(FormFile doc22file) {
        this.doc22file = doc22file;
    }

    /**
     * @return the doc22Name
     */
    public String getDoc22Name() {
        return doc22Name;
    }

    /**
     * @param doc22Name the doc22Name to set
     */
    public void setDoc22Name(String doc22Name) {
        this.doc22Name = doc22Name;
    }

    /**
     * @return the doc22Note
     */
    public String getDoc22Note() {
        return doc22Note;
    }

    /**
     * @param doc22Note the doc22Note to set
     */
    public void setDoc22Note(String doc22Note) {
        this.doc22Note = doc22Note;
    }

    /**
     * @return the doc23file
     */
    public FormFile getDoc23file() {
        return doc23file;
    }

    /**
     * @param doc23file the doc23file to set
     */
    public void setDoc23file(FormFile doc23file) {
        this.doc23file = doc23file;
    }

    /**
     * @return the doc23Name
     */
    public String getDoc23Name() {
        return doc23Name;
    }

    /**
     * @param doc23Name the doc23Name to set
     */
    public void setDoc23Name(String doc23Name) {
        this.doc23Name = doc23Name;
    }

    /**
     * @return the doc23Note
     */
    public String getDoc23Note() {
        return doc23Note;
    }

    /**
     * @param doc23Note the doc23Note to set
     */
    public void setDoc23Note(String doc23Note) {
        this.doc23Note = doc23Note;
    }

    /**
     * @return the doc24file
     */
    public FormFile getDoc24file() {
        return doc24file;
    }

    /**
     * @param doc24file the doc24file to set
     */
    public void setDoc24file(FormFile doc24file) {
        this.doc24file = doc24file;
    }

    /**
     * @return the doc24Name
     */
    public String getDoc24Name() {
        return doc24Name;
    }

    /**
     * @param doc24Name the doc24Name to set
     */
    public void setDoc24Name(String doc24Name) {
        this.doc24Name = doc24Name;
    }

    /**
     * @return the doc24Note
     */
    public String getDoc24Note() {
        return doc24Note;
    }

    /**
     * @param doc24Note the doc24Note to set
     */
    public void setDoc24Note(String doc24Note) {
        this.doc24Note = doc24Note;
    }

    /**
     * @return the doc25file
     */
    public FormFile getDoc25file() {
        return doc25file;
    }

    /**
     * @param doc25file the doc25file to set
     */
    public void setDoc25file(FormFile doc25file) {
        this.doc25file = doc25file;
    }

    /**
     * @return the doc25Name
     */
    public String getDoc25Name() {
        return doc25Name;
    }

    /**
     * @param doc25Name the doc25Name to set
     */
    public void setDoc25Name(String doc25Name) {
        this.doc25Name = doc25Name;
    }

    /**
     * @return the doc25Note
     */
    public String getDoc25Note() {
        return doc25Note;
    }

    /**
     * @param doc25Note the doc25Note to set
     */
    public void setDoc25Note(String doc25Note) {
        this.doc25Note = doc25Note;
    }

    /**
     * @return the doc26file
     */
    public FormFile getDoc26file() {
        return doc26file;
    }

    /**
     * @param doc26file the doc26file to set
     */
    public void setDoc26file(FormFile doc26file) {
        this.doc26file = doc26file;
    }

    /**
     * @return the doc26Name
     */
    public String getDoc26Name() {
        return doc26Name;
    }

    /**
     * @param doc26Name the doc26Name to set
     */
    public void setDoc26Name(String doc26Name) {
        this.doc26Name = doc26Name;
    }

    /**
     * @return the doc26Note
     */
    public String getDoc26Note() {
        return doc26Note;
    }

    /**
     * @param doc26Note the doc26Note to set
     */
    public void setDoc26Note(String doc26Note) {
        this.doc26Note = doc26Note;
    }

    /**
     * @return the doc27file
     */
    public FormFile getDoc27file() {
        return doc27file;
    }

    /**
     * @param doc27file the doc27file to set
     */
    public void setDoc27file(FormFile doc27file) {
        this.doc27file = doc27file;
    }

    /**
     * @return the doc27Name
     */
    public String getDoc27Name() {
        return doc27Name;
    }

    /**
     * @param doc27Name the doc27Name to set
     */
    public void setDoc27Name(String doc27Name) {
        this.doc27Name = doc27Name;
    }

    /**
     * @return the doc27Note
     */
    public String getDoc27Note() {
        return doc27Note;
    }

    /**
     * @param doc27Note the doc27Note to set
     */
    public void setDoc27Note(String doc27Note) {
        this.doc27Note = doc27Note;
    }

    /**
     * @return the doc28file
     */
    public FormFile getDoc28file() {
        return doc28file;
    }

    /**
     * @param doc28file the doc28file to set
     */
    public void setDoc28file(FormFile doc28file) {
        this.doc28file = doc28file;
    }

    /**
     * @return the doc28Name
     */
    public String getDoc28Name() {
        return doc28Name;
    }

    /**
     * @param doc28Name the doc28Name to set
     */
    public void setDoc28Name(String doc28Name) {
        this.doc28Name = doc28Name;
    }

    /**
     * @return the doc28Note
     */
    public String getDoc28Note() {
        return doc28Note;
    }

    /**
     * @param doc28Note the doc28Note to set
     */
    public void setDoc28Note(String doc28Note) {
        this.doc28Note = doc28Note;
    }

    /**
     * @return the doc29file
     */
    public FormFile getDoc29file() {
        return doc29file;
    }

    /**
     * @param doc29file the doc29file to set
     */
    public void setDoc29file(FormFile doc29file) {
        this.doc29file = doc29file;
    }

    /**
     * @return the doc29Name
     */
    public String getDoc29Name() {
        return doc29Name;
    }

    /**
     * @param doc29Name the doc29Name to set
     */
    public void setDoc29Name(String doc29Name) {
        this.doc29Name = doc29Name;
    }

    /**
     * @return the doc29Note
     */
    public String getDoc29Note() {
        return doc29Note;
    }

    /**
     * @param doc29Note the doc29Note to set
     */
    public void setDoc29Note(String doc29Note) {
        this.doc29Note = doc29Note;
    }

    /**
     * @return the doc30file
     */
    public FormFile getDoc30file() {
        return doc30file;
    }

    /**
     * @param doc30file the doc30file to set
     */
    public void setDoc30file(FormFile doc30file) {
        this.doc30file = doc30file;
    }

    /**
     * @return the doc30Name
     */
    public String getDoc30Name() {
        return doc30Name;
    }

    /**
     * @param doc30Name the doc30Name to set
     */
    public void setDoc30Name(String doc30Name) {
        this.doc30Name = doc30Name;
    }

    /**
     * @return the doc30Note
     */
    public String getDoc30Note() {
        return doc30Note;
    }

    /**
     * @param doc30Note the doc30Note to set
     */
    public void setDoc30Note(String doc30Note) {
        this.doc30Note = doc30Note;
    }

    public boolean isDraft() {
        return draft;
    }

    public void setDraft(boolean draft) {
        this.draft = draft;
    }

    public void setConclusion(String conclusion) {
        this.conclusion = conclusion;
    }

    public void setEventName(String eventName) {
        this.eventName = eventName;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public void setSearchQuery(String searchQuery) {
        this.searchQuery = searchQuery;
    }

    public void setVenue(String venue) {
        this.venue = venue;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    /**
     * @return the selectedReprParticipantsIds
     */
    public int[] getSelectedReprParticipantsIds() {
        return selectedReprParticipantsIds;
    }

    /**
     * @param selectedReprParticipantsIds the selectedReprParticipantsIds to set
     */
    public void setSelectedReprParticipantsIds(int[] selectedReprParticipantsIds) {
        this.selectedReprParticipantsIds = selectedReprParticipantsIds;
    }

    /**
     * @return the selectedReprOrganizersIds
     */
    public int[] getSelectedReprOrganizersIds() {
        return selectedReprOrganizersIds;
    }

    /**
     * @param selectedReprOrganizersIds the selectedReprOrganizersIds to set
     */
    public void setSelectedReprOrganizersIds(int[] selectedReprOrganizersIds) {
        this.selectedReprOrganizersIds = selectedReprOrganizersIds;
    }

    /**
     * @return the selectedReprParticipants
     */
    public Representative[] getSelectedReprParticipants() {
        return selectedReprParticipants;
    }

    /**
     * @param selectedReprParticipants the selectedReprParticipants to set
     */
    public void setSelectedReprParticipants(Representative[] selectedReprParticipants) {
        this.selectedReprParticipants = selectedReprParticipants;
    }

    /**
     * @return the selectedReprOrganizers
     */
    public Representative[] getSelectedReprOrganizers() {
        return selectedReprOrganizers;
    }

    /**
     * @param selectedReprOrganizers the selectedReprOrganizers to set
     */
    public void setSelectedReprOrganizers(Representative[] selectedReprOrganizers) {
        this.selectedReprOrganizers = selectedReprOrganizers;
    }

    /**
     * @return the actions
     */
    public ArrayList<Actions> getActions() {
        return actions;
    }

    /**
     * @param actions the actions to set
     */
    public void setActions(ArrayList<Actions> actions) {
        this.actions = actions;
    }

    /**
     * @return the actionId
     */
    public String getActionId() {
        return actionId;
    }

    /**
     * @param actionId the actionId to set
     */
    public void setActionId(String actionId) {
        this.actionId = actionId;
    }

    /**
     * @return the documentCollection
     */
    public List<Document> getDocumentCollection() {
        return documentCollection;
    }

    /**
     * @param documentCollection the documentCollection to set
     */
    public void setDocumentCollection(List<Document> documentCollection) {
        this.documentCollection = documentCollection;
    }
}
